package com.c2soft.ncmxTrade.domain;

import java.io.Serializable;

import lombok.experimental.Builder;

@Builder
public class Quote implements Serializable {

	private static final long serialVersionUID = 1L;

	private String otype;

	private String insname;

	private String symbol;

	private String expdate;

	private String qt;

	private String ql;

	private String qw;

	private String price;

	private String ptype;

	private String status;

	private String tp;

	
	public String getOtype() {
		return otype;
	}

	
	public void setOtype(String otype) {
		this.otype = otype;
	}

	
	public String getInsname() {
		return insname;
	}

	
	public void setInsname(String insname) {
		this.insname = insname;
	}

	
	public String getSymbol() {
		return symbol;
	}

	
	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}

	
	public String getExpdate() {
		return expdate;
	}

	
	public void setExpdate(String expdate) {
		this.expdate = expdate;
	}

	
	public String getQt() {
		return qt;
	}

	
	public void setQt(String qt) {
		this.qt = qt;
	}

	
	public String getQl() {
		return ql;
	}

	
	public void setQl(String ql) {
		this.ql = ql;
	}

	
	public String getQw() {
		return qw;
	}

	
	public void setQw(String qw) {
		this.qw = qw;
	}

	
	public String getPrice() {
		return price;
	}

	
	public void setPrice(String price) {
		this.price = price;
	}

	
	public String getPtype() {
		return ptype;
	}

	
	public void setPtype(String ptype) {
		this.ptype = ptype;
	}

	public String getStatus() {
		return status;
	}

	
	public void setStatus(String status) {
		this.status = status;
	}

	
	public String getTp() {
		return tp;
	}

	
	public void setTp(String tp) {
		this.tp = tp;
	}

	@Override
	public String toString() {
		return "Quote [otype=" + otype + ", insname=" + insname + ", symbol="
				+ symbol + ", expdate=" + expdate + ", qt=" + qt + ", ql=" + ql
				+ ", qw=" + qw + ", price=" + price + ", ptype=" + ptype
				+ ", status=" + status + ", tp=" + tp + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((symbol == null) ? 0 : symbol.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Quote other = (Quote) obj;
		if (symbol == null) {
			if (other.symbol != null)
				return false;
		} else if (!symbol.equals(other.symbol))
			return false;
		return true;
	}

}
